import { createApp } from 'vue'
import EditView from './views/EditView.vue'
import request from "./assets/js/request";
import store from './store'
import { ElMessage } from 'element-plus'
import fetchutil from "./assets/js/fetchutil";

//site css
import './assets/css/theme.css'

//element ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app=createApp(EditView)
app.use(store)
app.config.globalProperties.$request=request
app.config.globalProperties.$ElMessage=ElMessage
app.use(ElementPlus)
app.config.globalProperties.$fetchutil=fetchutil
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')